Functions > PIC2List Functions > PIC2List IOCA Packet Functions |
The P2PktIoca structure is defined as:
Copy Code | |
---|---|
typedef struct {
BYTE Type;
DWORD Length;
WORD SDFID;
WORD SDFLen;
BYTE SDFData[1];
} P2PktIoca; |
Copy Code | |
---|---|
P2PktIoca* P2LAddIoca(P2LIST* p2l, DWORD ID, DWORD Len, BYTE* data) |
Add a Ioca PIC2List packet with SFID ID. If data == 0, then the packet is allocated and the data is set to 0. Returns 0 if a memory allocation error occurs.
Copy Code | |
---|---|
P2PktIoca* P2LFindIoca (P2LIST* p2l, DWORD ID) |
P2LFindIoca returns a pointer to the first Ioca packet of type ID in the PIC2List.
Copy Code | |
---|---|
P2PktIoca* P2LFindNextIoca (P2LIST* p2l, P2PktIoca* pkt) |
P2LFindIoca returns a pointer to the next Ioca packet of type ID and following pkt.